package pailaidai.hc.com.mysvgdemo.base64pass;

import android.util.Base64;

import java.io.UnsupportedEncodingException;

/**
 * Created by 迪 on 2016/7/26.
 */
public class Key {
    private static final String AES_KEY = "Y2IyYTJhNWE2YTRhNWEzZDFhMmEyYTVhNmE0YTU0ODk=";
//    private static final String AES_KEY = "FJ7BYFRL1tvMGPDzkh6wVw==";
    private static final String IV_PARAMETER_SPEC = "MTIzNDU2Nzg5MDEyMzQ1Ng==";
    private static final String RSA_PRA_KEY ="MIICeAIBADANBgkqhkiG9w0BAQEFAASCAmIwggJeAgEAAoGBAN6S9bVg1RiX4UJpTrKDXYjJMuP/EKMY4VGUM7YoGNsHeD/XlOnrLUQ9KWycjhIfE+i3CzBrQKpB1CmwvATiF+F1GkcAJdVzAG1FvIbA15WoUkUyD7CDr5fZUv/RbNBbEffp8Dg9AsrZV6S1nF1z8OKoEo2fRIM2WCV9taoIS8EhAgMBAAECgYEAv7Wzf/wc8Gb5tptAFtDBwu0SMYHkUac/hGXzuKWG6zne4JaPBID1534K7StXz9IG8v6e26C1/TBgT1yURlx8FbFpWL+OKzPyjEy8osasM7egAFYCvqmpDK0ylrDpwt2Aknx7MnUYw7ZBg5v92HbOhUtxYZgNt6ecGVkOHSzkeZUCQQD7O777C++cUjXhuPnB4p+8xeXXw3vpRHaD8T0w1JFKrNq9Hp4sESi+Z6sH8pf79W8pBb3dC2QlTwuNzP974mmzAkEA4swDkI4KvpPpb6WILs1Lj6RWAFlKZsPvMn4OF9VLPCbf8BUAlH3XGO6PnCRjcLQZuYyh23frdLxPKPU5BtLX2wJBAJlnTOEb064+4Jm4igCicWkh6YtK2RGBdWBxYCy9zw2q6FGMLYa434kL4foTXkxB/CMvV1RujTLexi5Km0G46VMCQACRSiD+egBoFll1LJYRZXMCkkSF9K21J9AUiKx+mCWaY00SgGHevr8NOcbGQIlzqezQ8Ua/UhOEtR4BHxdpR6kCQQCshk2e9Y2NPAVipIeD16UVlSHLC3Xx5hszrLtiHk9yqtx4/RU7jNyBDv5it05ZQ18LA44Sqq4P6h4OXSqS9/6k";


    public static  String RSA_PRO_KEY (){

       return RSA_PRA_KEY;
    }
    public static  String AES_KEY () {

        try {
            return new String(Base64.decode(AES_KEY.getBytes("utf-8"),Base64.DEFAULT));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            return "";
        }

    }
    public static String IV_PARAMETER_SPEC(){
        try {
            return new String(Base64.decode(IV_PARAMETER_SPEC.getBytes("utf-8"),Base64.DEFAULT));
        } catch (UnsupportedEncodingException e) {
            e.printStackTrace();
            return "UnsupportedEncodingException";
        }
    }

}
